package com.dycn.posdashboard.action;

import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.dycn.posdashboard.data.User;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class JspProxyAction extends ActionSupport {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1207076499199439281L;
	protected final Log log = LogFactory.getLog(getClass());
	
    private User         ue;
    
	public User getUe() {
		return ue;
	}

	public void setUe(User ue) {
		this.ue = ue;
	}

	/**
	 * @param args
	 */

	public String init(){
		
		return SUCCESS;
	}
	
	public String workingBencherLoading(){
		Map<String, Object> session = ActionContext.getContext().getSession();
		ue=(User)session.get("LoginUserInfor");
		return SUCCESS;
	}

}
